home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Games / Team17-HDinst / BodyBlowsGalactic / Install-BBGalactic < prev    next >
Text File  |  1997-09-03  |  2KB  |  95 lines

  1.  
  2. ;----------------------------
  3.  
  4. ;try to figure out a place where the user usually installs his games
  5. (if (exists "Games:" (noreq) )
  6.     (set @default-dest "Games:")
  7.     (if (exists "SYS:Games" (noreq) )
  8.         (set @default-dest "SYS:Games")
  9.         (if (exists "Work:Games" (noreq) )
  10.             (set @default-dest "Work:Games")
  11.             (if (exists "JEUX:" (noreq) )
  12.                (set @default-dest "JEUX:")
  13.                (set @default-dest "SYS:")
  14.             )
  15.         )
  16.     )
  17. )
  18.  
  19. (message "\n\n\nThis loader needs the JST program (NOT INCLUDED)\n to be copied in your path\n\n(if you don't have it already)\n\nJST is available from aminet (game/patch) or on my site")
  20.  
  21.  
  22. (set @default-dest
  23. (askdir
  24.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  25.     (help @askdir-help)
  26.     (default @default-dest)
  27.     (disk)
  28. )
  29. )
  30.  
  31. (set #dest (tackon @default-dest @app-name))
  32.  
  33. (set #CI_unit
  34.     (askchoice
  35.         (prompt "From which disk unit do you want\nto install the game")
  36.         (help    @askoptions-help)
  37.         (choices
  38.            "DF0:"
  39.            "DF1:"
  40.            "DF2:"
  41.            "DF3:"
  42.         )
  43.     )
  44. )
  45.  
  46. (set #CI_drive ("DF%ld:" #CI_unit))
  47.  
  48. (makedir #dest
  49.     (help @makedir-help)
  50.     (infos)
  51. )
  52.  
  53. ;----------------------------
  54.  
  55. (copyfiles
  56.     (help @copyfiles-help)
  57.     (source "BBGalacticHD")
  58.     (dest #dest)
  59.     (infos)
  60. )
  61.  
  62. (copyfiles
  63.     (help @copyfiles-help)
  64.     (source "bbghd.readme")
  65.     (dest #dest)
  66.     (infos)
  67. )
  68.  
  69. (message ("\nInsert %s disk 1 into drive %s !" @app-name #CI_drive))
  70.  
  71.     (if
  72.         (= 0 (run ("boot2file %ld \"%s/BBG.b1\"" #CI_unit #dest )))
  73.         ("")
  74.         (abort "\"boot2file\" must be in your PATH !")
  75.     )
  76.  
  77. (message ("\nAbout to read disk data" @app-name #CI_drive))
  78.  
  79.     (if
  80.         (= 0 (run ("rob2file %ld \"%s/BBG.d1\" 2 159 48162937 OFFSET >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  81.         ("")
  82.         (abort "\"rob2file\" must be in your PATH !")
  83.     )
  84.  
  85. (message ("\nInsert %s disk 2 into drive %s !" @app-name #CI_drive))
  86.     (if
  87.         (= 0 (run ("rob2file %ld \"%s/BBG.d2\" 0 159 43532741 >con:///1000//CLOSE/WAIT" #CI_unit #dest )))
  88.         ("")
  89.         (abort "\"rob2file\" must be in your PATH !")
  90.     )
  91.  
  92.  
  93. (exit)
  94.  
  95.